package com.qyhl.webtv.module_circle.utils.itemview;

import com.qyhl.webtv.commonlib.entity.circle.CircleHomeBean;
import com.zhy.adapter.abslistview.CommonAdapter;

import java.util.List;

/**
 * Created by qyhl on 2018/1/19.
 */

public interface ItemViewContract {
    interface ItemView {
        void doLoveSuccess(CircleHomeBean bean);
//
//        void doLoveError(String msg,TextView likeBtn);
//
        void undoLoveSuccess(CircleHomeBean bean);
//
//        void undoLoveError(String msg,TextView likeBtn);

        void deleteSuccess(List<CircleHomeBean.PostList> beanList, CommonAdapter commonAdapter);

        void deleteError(String msg);

    }

    interface ItemPresenter {
        void doLove(String topicId, CircleHomeBean bean);

        void undoLove(String topicId, CircleHomeBean bean);

        void doLoveSuccess(CircleHomeBean bean);
//
//        void doLoveError(String msg,TextView likeBtn);
//
        void undoLoveSuccess(CircleHomeBean bean);
//
//        void undoLoveError(String msg,TextView likeBtn);

        void deleteComment(String postId, List<CircleHomeBean.PostList> beanList, CommonAdapter commonAdapter);

        void deleteSuccess(List<CircleHomeBean.PostList> beanList, CommonAdapter commonAdapter);

        void deleteError(String msg);

    }

    interface ItemModel {
        void doLove(String topicId, CircleHomeBean bean);

        void undoLove(String topicId, CircleHomeBean bean);

        void deleteComment(String postId, List<CircleHomeBean.PostList> beanList, CommonAdapter commonAdapter);

    }


}
